﻿<UserControl x:Class="SequenceViewer.AnnotationMaster"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="480" d:DesignWidth="480"
             Loaded="AnnotationMaster_Loaded" IsVisibleChanged="UserControl_IsVisibleChanged">
    <Border BorderBrush="Brown" BorderThickness="1" Background="Beige">
        <Grid Margin="10">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="2*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="40" />
                <RowDefinition Height="40" />
                <RowDefinition Height="40" />
                <RowDefinition Height="40" />
                <RowDefinition Height="*" />
                <RowDefinition Height="40" />
            </Grid.RowDefinitions>
            <TextBlock FontWeight="Bold" Margin="5,5,127,5" VerticalAlignment="Center" Text="Key" />
            <TextBlock FontWeight="Bold" Grid.Row="1" Grid.Column="0" Margin="5" HorizontalAlignment="Left" VerticalAlignment="Center" Text="Label/Name" />
            <TextBlock FontWeight="Bold" Grid.Row="2" Grid.Column="0" Margin="5" HorizontalAlignment="Left" VerticalAlignment="Center" Text="Location" />
            <TextBlock FontWeight="Bold" Grid.Row="3" Grid.Column="0" Margin="5" HorizontalAlignment="Left" VerticalAlignment="Center" Text="Qualifiers" />
            <ComboBox Grid.Row="0" Grid.Column="1" HorizontalAlignment="Stretch" Margin="5" Name="cbKey" VerticalAlignment="Center" Height="24" SelectionChanged="cbKey_SelectionChanged" />
            <TextBox Grid.Row="1" Grid.Column="1" HorizontalAlignment="Stretch" Margin="5" Name="txtLabel" VerticalAlignment="Center" Height="24" />
            <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="1" >
                <TextBlock Margin="5,5,0,5" VerticalAlignment="Center" Text="Start"/>
                <TextBox Margin="5,5,0,5" VerticalAlignment="Center" Name="txtStart" Width="100" Height="24" />
                <TextBlock Margin="5,5,0,5" VerticalAlignment="Center" Text="End"/>
                <TextBox Margin="5,5,0,5" VerticalAlignment="Center" Name="txtEnd" Width="100" Height="24" />
            </StackPanel>
            <StackPanel Orientation="Horizontal" Grid.Row="3" Grid.Column="1">
                <TextBlock Margin="5" VerticalAlignment="Center">
                    <Hyperlink Click="Hyperlink_Click">Add Qualifier</Hyperlink>
                </TextBlock>
            </StackPanel>
            <ScrollViewer Grid.Row="4" Grid.ColumnSpan="2">
                <StackPanel Name="stkPanel"/>
            </ScrollViewer>
            <StackPanel Grid.Row="5" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center">
                <Button Name="btnOK" Width="120" Content="Save" Margin="7" Click="btnOK_Click"/>
                <Button Name="btnCancel" Width="120" Content="Cancel" Margin="7" Click="btnCancel_Click"/>
            </StackPanel>
            <TextBlock Height="23" HorizontalAlignment="Left" Margin="28,0,0,0" Name="textBlock1" 
                       Text="*" VerticalAlignment="Center" Foreground="Red" />
            <!--<TextBlock Foreground="Red" Height="23" HorizontalAlignment="Left" Margin="76,0,0,0" Name="textBlock2" 
                       Text="*" VerticalAlignment="Center" Grid.Row="1" />-->
            <TextBlock Foreground="Red" Height="23" HorizontalAlignment="Left" Margin="55,0,0,0" Name="textBlock3" 
                       Text="*" VerticalAlignment="Center" Grid.Row="2" />
        </Grid>
    </Border>
</UserControl>
